package com.woniu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.ProPurchase;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
public interface IProPurchaseService extends IService<ProPurchase> {
    void add(ProPurchase proPurchase);

    void delete (int purId);

    void update(ProPurchase proPurchase);

    ProPurchase getByPurId(int purId);

    List<ProPurchase> getAll();

    List<ProPurchase> getByProId(int proId);

    // PageBean<ProPurchase> getProPurByPage(int page );

    Page<ProPurchase> getProPurchaseByPage(Integer pageNum, Integer pageSize,ProPurchase proPurchase);

    List<ProPurchase> getProPurchaseByCondition(ProPurchase proPurchase);
}
